package com.lx.mobileplayer.mvp.view.fragment

import com.lx.mobileplayer.mvp.model.YueDanItemBean
import com.lx.mobileplayer.mvp.persenter.YueDanPresenter
import com.lx.mobileplayer.mvp.view.Iview.IYueDanView
import com.lx.mobileplayer.mvp.view.adapter.YueDanAdapter

/**
 * 类说明：悦单
 * Created by liuxiong on 2019/4/24.
 */
class YueDanFragment :BaseListFragment<YueDanAdapter,YueDanItemBean.PlayListsBean>(),IYueDanView<YueDanItemBean.PlayListsBean>{

    private val mPresenter by lazy{
        YueDanPresenter(this)
    }

    override fun createAdapter(): YueDanAdapter {
        return YueDanAdapter()
    }

    override fun loadData(offset: Int, pageSize: Int) {
        mPresenter.requestData(offset,pageSize)
    }

}